package org.neuedu.his.mapper;

import org.apache.ibatis.annotations.Param;
import org.neuedu.his.model.*;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> getDeptList();

    List<Department> serchTableData(String keyWord);



    List<Constantitem> serchconstantList();

    List<DepartmentType> serchdeptTyptList();

    int addDept(String deptCode, String deptName, int constantId, int deptTyptId);

    Department serchDeptbyId(int deptId);


    int editDept(int id,String deptCode, String deptName, int constantId, int deptTyptId);

    int delDept(int id);

    int mulDelDepts(@Param("ids") int[] ids);
}